import dayjs from 'dayjs'

export const currentDate = (): string => {
  return dayjs().format('YYYY-MM-DD')
}
export const currentDateTime = (): string => {
  return dayjs().format('YYYY-MM-DD HH:mm:ss')
}

export const dayAgoDate = (day: number): string => {
  return dayjs(day).format('YYYY-MM-DD')
}
